package com.emergency.evaluate.domain;

import com.emergency.base.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;

/**
 * Created by Administrator on 2020/4/26.
 * 统计评分结果、等级信息
 */
@Entity
@Table (name = "eva_reportNum")
public class ReportNum extends BaseEntity {

   @JsonIgnore
   @OneToOne (targetEntity=Report.class, fetch= FetchType.LAZY)
   @JoinColumn(name="report_id",referencedColumnName="id")
    private Report report;
   //统计类型
   private int type;
   //等级
    private int  level;
    //数量
   private int num;



    //getter and setter

    public Report getReport() {
        return report;
    }

    public void setReport(Report report) {
        this.report = report;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public ReportNum() {
    }
}
